<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh sách thể loại</a> </div>
  </div>
  {$notice}
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
       <form action="categories_delete_all.php" method="post">
        <div class="widget-box">
          <div class="widget-title">
          <div class="buttons" style="position:absolute;right:175px">
	       <a title="Icon Title" class="btn btn-mini" href="categories_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
              <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span>  
            <h5>Giới thiệu [Danh sách]</h5>
          </div>
    
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                <th style="width:40px;">
                    <div class="checker" >
                        <input type="checkbox" class="checker"/>
                    </div>
                    </th>
                  <th>Mã</th>
                  <th>Tên</th>
                  <th>Tên loại cha</th>
                  <th>Vị trí</th>
                  <th>Hiện thị</th>
                  <th>Hình ảnh</th>
                  <th>Tác vụ</th>
                  
                </tr>
              </thead>
              <tbody>
                {foreach $read_list as $k=>$category}
                {if $k==0}
                <tr class="gradeX" style="background:#A9B9CB">
                {/if}
                <td style="text-align:center">
                    <div class="checker">
                        <input type="checkbox" class="checker" name="data[{$category.id}]" value="{$category.id}"/>
                    </div>
                    </td>
               	  <td>{$category.id}</td>
                  <td>{$category.name}</td>
                  <td>{print_name($read_list,$category.parent)}</td>
                  <td>{$category.location}</td>
                  <td> <a href="categories_update_status.php?id={$category.id}"><i class="icon-eye-{if $category.status == 1}open{else}close{/if}"></i></a></td>
                  <td class="center"><img src="/upload/{if $category.banner !=''}product_category/{$category.day_time|date_format:'%m-%Y'}/{$category.banner}{else}icon/no-avatar.jpg{/if}" style="max-width:50px" /></td>
                  <td class="center">
                  		<a href="categories_update.php?id={$category.id}"><i class="icon icon-pencil"></i></a>
                        <a href="categories_delete.php?id={$category.id}"><i class="icon icon-remove"></i></a>
                  </td>
                </tr>
                 {/foreach}
                 
                
                
                
                
                
                
                
                
                
              </tbody>
            </table>
          </div>
          </form>
        </div>
        
        
        
        
      </div>
    </div>
  </div>
